class Fee < ActiveRecord::Base
  has_many :campsites
  
  def validate
    errors.add(:per_person_rate, "should be greater than 0") if per_person_rate.nil? || 
                                                                per_person_rate < 0.01
    errors.add(:family_rate, "should be greater than 0") if family_rate.nil? || 
                                                            family_rate < 0.01
  end
end
